package com.codefish.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 支出类型分类
 *
 * @author codefish
 * @email cool_fish@aliyun.com
 * @date 2021-07-14 15:12:43
 */
@Data
@TableName("out_money_class")
public class OutMoneyClass implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 支出类型名称
     */
    private String outMoneyClassName;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建人id
     */
    private Long createId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 0无效 1有效
     */
    private Integer state;
    /**
     * 0无效 1有效
     */
    private Integer isDel;
    /**
     * 家庭id
     */
    private Integer familyId;

    /**
     * 创建人姓名
     */
    @TableField(exist = false)
    private String nameCn;

}
